cmake_minimum_required(VERSION 2.8.3)
project(rplidar)

set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS "-std=c++11")

find_package(catkin REQUIRED COMPONENTS
  rosbag
  roscpp
  sensor_msgs
  std_msgs
)

find_package(PCL REQUIRED)
message(STATUS "***** PCL version: ${PCL_VERSION} *****")

catkin_package(
#  INCLUDE_DIRS include
#  LIBRARIES rplidar
  CATKIN_DEPENDS rosbag roscpp sensor_msgs std_msgs
  DEPENDS PCL
)


include_directories(
# include
  ${catkin_INCLUDE_DIRS}
  ${PCL_INCLUDE_DIRS}
)

add_executable(rplidar_process_node src/rplidar_process_node src/rplidar_process_core )
target_link_libraries(rplidar_process_node ${catkin_LIBRARIES} ${PCL_LIBRARIES})
